// 获取今日工作信息
export const getTodayData = `
query($plug_id:Int){
  getTodayData(plug_id:$plug_id){
    driver_nums
    sub_nums
    contact_nums
  }
}
`;
// 获取外卖信息
export const getTakeData = `
query($plug_id:Int){
  getTakeData(plug_id:$plug_id){
    new_nums
    wait_nums
    finish_nums
  }
}
`;
// 获取汇总信息
export const getTotalData = `
query($plug_id:Int,$park_id:Int){
  getTotalData(plug_id:$plug_id,park_id:$park_id){
    total_driver_nums
    today_driver_nums
    today_contact_nums
    total_sub_nums
    today_sub_add
    today_sub_hexiao
    call_yes
    call_no
  }
}
`;
// 获取园区信息
export const getParkList = `
query($plug_id:Int){
  getParkList(plug_id:$plug_id){
    text
    value
    address
  }
}
`;
// 获取线路列表
export const getLineList = `
query($plug_id:Int,$park_id:Int,$keywords:String){
  getLineList(plug_id:$plug_id,park_id:$park_id,keywords:$keywords){
    text
    value
  }
}
`;
// 获取车型列表
export const getCartModelList = `
query($plug_id:Int){
  getCartModelList(plug_id:$plug_id){
    text
    value
  }
}
`;
// 获取预约列表
export const getSubList = `
query($plug_id:Int,$page:Int,$archives_id:Int,$park_id:Int,$status:Int,$starttime:String,$endtime:String){
  getSubList(plug_id:$plug_id,page:$page,archives_id:$archives_id,park_id:$park_id,status:$status,starttime:$starttime,endtime:$endtime ){
    list{
       id
       real_name
       content
       createtime
       plug_name
       status
       status_text
       cart_code
       driver_mobile
       address
       driver_id
       time
       park
       amount
     }
     total
     lastpage
  }
}
`;
// 获取预约详情
export const getSubDetails = `
query($plug_id:Int,$id:Int){
  getSubDetails(plug_id:$plug_id,id:$id){
    id
    archives_id
    order_sn
    time
    cart_code
    address
    amount
    real_name
    content
    createtime
    plug_name
    status
    status_text
    driver_id
    driver_name
    driver_mobile
    driver_avatar
    park_id
    park
    starttime
    endtime
  }
}
`;
// 获取触达列表
export const getContactList = `
query($plug_id:Int,$page:Int,$archives_id:Int){
  getContactList(plug_id:$plug_id,page:$page,archives_id:$archives_id){
    list{
        id
        real_name
        content
        cart_code
        createtime
        plug_name
        type
        type_text
    }
    total
    lastpage
  }
}
`;